import request from '@/common/request'

//推广链接列表
export function getList(data) {
    return request({
        url: '/apisell/apply/popuLink/getList',
        method: 'post',
        data:data
    })
}

//继承推广链接列表
export function getInheritList(data) {
    return request({
        url: '/apisell/apply/popuLink/getInheritList',
        method: 'post',
        data:data
    })
}

//获取商品列表
export function getGoodsList(data) {
    return request({
        url: '/apisell/apply/popuLink/getGoodsList',
        method: 'post',
        data:data
    })
}

//创建推广链接
export function createPopuLink(data) {
    return request({
        url: '/apisell/apply/popuLink/createPopuLink',
        method: 'post',
        data:data
    })
}

//查看推广链接
export function checkPopuLink(data) {
    return request({
        url: '/apisell/apply/popuLink/checkPopuLink',
        method: 'post',
        data:data
    })
}

//编辑推广链接
export function editePopuLink(data) {
    return request({
        url: '/apisell/apply/popuLink/editePopuLink',
        method: 'post',
        data:data
    })
}

//补货
export function replenish(data) {
    return request({
        url: '/apisell/apply/popuLink/addGoodsQuantity',
        method: 'post',
        data:data
    })
}

//修改状态
export function editeLinkStatus(data) {
    return request({
        url: '/apisell/apply/popuLink/editeLinkStatus',
        method: 'post',
        data:data
    })
}
